package gstyle.stylesheet;

import com.google.gwt.dom.client.Document;

public class GeneralStyleElementInjector implements StyleElementInjector {

    public void injectStyle(String compiledStyle) {
        com.google.gwt.dom.client.StyleElement style = Document.get().createStyleElement();
        style.setPropertyString("language", "text/css");
        style.setInnerText(compiledStyle);
        Document.get().getElementsByTagName("head").getItem(0).appendChild(style);
    }
}
